<template>
    <div id="app">
        <transition name="fade">
            <router-view/>
        </transition>
    </div>
</template>

<script type="text/javascript">
require('@/utils/audio');
document.addEventListener("touchmove", function(e){ e.preventDefault(); }, {passive: false});
export default {
    methods: {
        checkIsIos(){
            if(navigator.userAgent.toLowerCase().indexOf('iphone')>-1){
                this.$store.commit('setIsIos', true)
            }
        },
    },
    created () {
        this.checkIsIos();
    }
}
</script>

<style lang="scss">
html,
body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
        "Helvetica Neue", STHeiti, Tahoma, sans-serif;
    background: #000;
}
* {
    box-sizing: border-box;
}
#status {
    position: absolute;
    left: 0;
    top: 0;
    width: 200px;
    height: 200px;
    color: #fff;
    z-index: 9999;
}

#app {
    position: absolute;
    left: 50%;
    top: 0;
    margin-left: -375px;
    width: 750px;
    height: 100%;
    -webkit-font-smoothing: antialiased;
}

#wrap {
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page {
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -724px;
    width: 100%;
    height: 1448px;
    overflow: hidden;
    z-index: 10;
}

.disable {
    pointer-events: none;
}

.hidden {
    display: none !important;
}

.clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

.clearfix {
    *zoom: 1;
}

.fade-enter-active,
.fade-leave-active {
    transition: opacity 1s;
}
.fade-enter,
.fade-leave-to {
    opacity: 0;
}

.slide-fade-enter-active {
    transition: all 0.3s ease;
}
.slide-fade-leave-active {
    transition: all 0.8s cubic-bezier(1, 0.5, 0.8, 1);
}
.slide-fade-enter,
.slide-fade-leave-to {
    transform: translateX(10px);
    opacity: 0;
}

.box {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.vhBox {
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -50vh;
    width: 100%;
    height: 100vh;
}

a {
    // background: rgba(13,32,187,.1);
    -webkit-tap-highlight-color: transparent;
}

ul,
li,
p,
input,
h2,
h3 {
    margin: 0;
    padding: 0;
    list-style: none;
}

input {
    border: 0;
    outline: none;
    appearance: none;
}

.vc-panel {
    font-size: 24px !important;
}
.vc-switch {
    font-size: 1.6em !important;
    opacity: 0;
}

.untouch {
    touch-callout: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
}
</style>
